
//@ts-ignore
export function IconTooling(props:any) {
    //  This icon is from <https://github.com/Templarian/MaterialDesign>, distributed under Apache 2.0 (https://www.apache.org/licenses/LICENSE-2.0) license
    return (


        <svg

            aria-hidden="true"
            role="img"
            class="iconify iconify--mdi"
            width="24"
            height="24"
            preserveAspectRatio="xMidYMid meet"
            viewBox="0 0 24 24"
        >
            <path
                d="M20 18v-4h-3v1h-2v-1H9v1H7v-1H4v4h16M6.33 8l-1.74 4H7v-1h2v1h6v-1h2v1h2.41l-1.74-4H6.33M9 5v1h6V5H9m12.84 7.61c.1.22.16.48.16.8V18c0 .53-.21 1-.6 1.41c-.4.4-.85.59-1.4.59H4c-.55 0-1-.19-1.4-.59C2.21 19 2 18.53 2 18v-4.59c0-.32.06-.58.16-.8L4.5 7.22C4.84 6.41 5.45 6 6.33 6H7V5c0-.55.18-1 .57-1.41C7.96 3.2 8.44 3 9 3h6c.56 0 1.04.2 1.43.59c.39.41.57.86.57 1.41v1h.67c.88 0 1.49.41 1.83 1.22l2.34 5.39z"
                fill="currentColor"
            ></path>
        </svg>


    )
}

export function Test() {
   return  {
        title: '操作',
        width: '120px',
        align: 'center',
        //@ts-ignore
        customRender: ({ record }:any) => {
          let result = <div></div>
          //@ts-ignore
          const slots = {
            title: () => (
              <a-form>
                <a-form-item label="选择打印机"></a-form-item>
                <a-form-item>
                  <a-select>
                    <a-select-option value="123456">123</a-select-option>
                  </a-select>
                </a-form-item>
              </a-form>
            )
          }
          try {
            result = (
              <>
                {/* <APopconfirm placement="left" ok-text="Yes" cancel-text="No" v-slots={slots}>
                  <AButton type="primary" size="small" onClick={() => doPrint(record)}>
                    打印
                  </AButton>
                </APopconfirm>
                &nbsp;
                <AButton size="small" onClick={() => getWaybillTrace(record)}>
                  轨迹
                </AButton> */}
              </>
            )
          } catch (error) {
            console.error(error)
            result = <div></div>
          }
    
          return result
        }
      }
}